#!/bin/bash 
set -x  
shdir=${0%/*}
cd $shdir
shdir=$PWD

rootdir=${shdir%/*}

echo $rootdir

ps -ef | grep django 

sleep 1

python2.6 $rootdir/django-admin.py runfcgi --pythonpath=$rootdir/say/v1 --settings=web.settings protocol=scgi host=127.0.0.1 port=58101 method=prefork maxrequests=100000 maxchildren=30 pidfile=$rootdir/status/django.pid

sleep 2

ps -ef | grep django 


